﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_Item_count.aspx.cs" Inherits="Web.admin_Item_count" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>项目统计</title>
      <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
        <link href="css/Page.css" rel="stylesheet" type="text/css" />
        
          <style type="text/css">
        #contentPop ul
        {
            width: 800px;
            height: 10px;
         
            display: block;
            margin-left:0px;
         
        }
        #contentPop ul li
        {
            list-style-type: none;
            float: left;
            display: inline;
        }
      
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
     <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0" width="98%">
            <tr>
                <td colspan="4" class="TitleBar"  align="center">
                  项目计信息
                </td>
            </tr>
            
                <tr>
                <td class="Pager" colspan="3" style="padding-right: 30px; text-align:left; padding-left:50px;  border:solid 1px #999;">
              开始时间：<asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="70px" TabIndex="10"></asp:TextBox>
                    结束时间：<asp:TextBox ID="EndDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="70px" TabIndex="11"></asp:TextBox>
                         部门：
                     <asp:DropDownList ID="ddldepartType" runat="server" TabIndex="6" Width="70px" >
                    </asp:DropDownList>
               项目：
                 <asp:DropDownList ID="ddlItemType" runat="server" TabIndex="4" Width="70px" >
                    </asp:DropDownList>
                   
                </td>
                
                <td class="Pager"  style="padding-right: 30px; text-align:left;  border:solid 1px #999;">
                 <asp:Button ID="btn_out" runat="server"  
                        style="height: 26px" Text="导出Excel" onclick="btn_out_Click" />
                </td>
                
            </tr>
            <tr >  <td colspan="3"  style=" border:solid 1px #999;">
            <div id="contentPop" runat="server" /><td style=" border:solid 1px #999;"><asp:Button runat="server" ID="btn_ok" Text="查询结果" onclick="btn_ok_Click"  /></td> 
            </td></tr>
            
         <tr>
                <td colspan="4" class="TitleBar"  align="center">
                  项目总计信息
                </td>
            </tr>
            
         <tr>
                <td class="MenuItem" align="center">
                    项目
                </td>
                
                
                  <td class="MenuItem" align="center">
                    收入
                </td>
                  <td class="MenuItem"  align="center">
                   支出
                </td>
                  <td class="MenuItem" align="center">
                   合计
                </td>
            </tr>
         <asp:Repeater ID="repeater" runat="server" >
                <ItemTemplate>
                    <tr>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<%#Eval("项目")%>
                        </td>
                        <td class="RecordItem" style="text-align: right; color: Blue; ">
                          <%#Convert.ToDecimal(Eval("收入")).ToString("0.00")%>
                        </td>
                          <td class="RecordItem" style="text-align:right; color:Red;  ">
                          <%#Convert.ToDecimal(Eval("支出")).ToString("0.00")%>
                        </td>
                         
                          <td class="RecordItem" style="text-align: right;  ">
                          <%#Convert.ToDecimal(Eval("合计")).ToString("0.00")%>
                        </td>
                          
                       
                    </tr>
                </ItemTemplate>
               
            </asp:Repeater>    
            
           
           
             <tr>
                <td colspan="4" class="TitleBar"  align="center">
                 银行项目统计
                </td>
            </tr>
            
         <tr>
                <td class="MenuItem" align="center">
                    项目
                </td>
                
                
                  <td class="MenuItem" align="center">
                    收入
                </td>
                  <td class="MenuItem" align="center">
                   支出
                </td>
                  <td class="MenuItem" align="center">
                   合计
                </td>
            </tr>
         <asp:Repeater ID="repeater1" runat="server" >
                <ItemTemplate>
                    <tr>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<%#Eval("项目")%>
                        </td>
                        <td class="RecordItem" style="text-align: right; color: Blue; ">
                          <%#Convert.ToDecimal(Eval("收入")).ToString("0.00")%>
                        </td>
                          <td class="RecordItem" style="text-align: right; color:Red; ">
                          <%#Convert.ToDecimal(Eval("支出")).ToString("0.00")%>
                        </td>
                         
                          <td class="RecordItem" style="text-align: right;  ">
                          <%#Convert.ToDecimal(Eval("合计")).ToString("0.00")%>
                        </td>
                          
                       
                    </tr>
                </ItemTemplate>
               
            </asp:Repeater>        
            
            
            
               <tr>
                <td colspan="4" class="TitleBar"  align="center">
                 现金项目统计
                </td>
            </tr>
            
         <tr>
                <td class="MenuItem" align="center">
                    项目
                </td>
                
                
                  <td class="MenuItem" align="center">
                    收入
                </td>
                  <td class="MenuItem" align="center">
                   支出
                </td>
                  <td class="MenuItem" align="center">
                   合计
                </td>
            </tr>
         <asp:Repeater ID="repeater2" runat="server" >
                <ItemTemplate>
                    <tr>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<%#Eval("项目")%>
                        </td>
                         <td class="RecordItem" style="text-align: right; color: Blue; ">
                          <%#Convert.ToDecimal(Eval("收入")).ToString("0.00")%>
                        </td>
                          <td class="RecordItem" style="text-align: right; color:Red; ">
                          <%#Convert.ToDecimal(Eval("支出")).ToString("0.00")%>
                        </td>
                        
                          <td class="RecordItem" style="text-align: right;  ">
                          <%#Convert.ToDecimal(Eval("合计")).ToString("0.00")%>
                        </td>
                          
                       
                    </tr>
                </ItemTemplate>
               
            </asp:Repeater>                  
            
         
        
        </table>
    
    
    </div>
    </form>
</body>
</html>
